

#include <glm/glm.hpp>
#include <vector>

class SphereOfCubes
{
public:
	SphereOfCubes();

	void draw();

	int getFaceCount();
	void setMorphPos(int faceIdx, float t);
	glm::vec3 getVertexColor( int idx );

private:
	glm::vec3 cube(int side,float s, float t);

	std::vector<glm::mat4> frames;
	std::vector<glm::vec3> pointsOnSphere;
	std::vector<float> faceMorphPositions;
	std::vector<glm::vec3> colors;
};